stack: Fix a corner-case
authorMatthias Clasen <mclasen@redhat.com>
Wed, 13 Feb 2019 14:00:00 +0000 (09:00 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 13 Feb 2019 14:00:00 +0000 (09:00 -0500)
commit17509226316b0658a0c789af43c3f28de0fe0435
tree44bebf3a5957c9022833ee4465544e4ffd6cfaa7
parent2dd85b826f5f87e79787bc38181287b5834c5b88
stack: Fix a corner-case

When the stack goes empty, we were failing to reset
the visible_child member to NULL, causing problems later
on, since we don't have a ref for it.
gtk/gtkstack.c